<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>在线客服</title>
</head>
<body>
		<table>
			<thead>
				<tr>
					<td>匿名</td>
					<td>号码</td>
					<td>服务类型</td>
					<td>服务权限</td>
					<td>加入日期</td>
					<td>操作</td>
				</tr>
			</thead>
			<tbody>
				<s:iterator value="onlines" var="online_list">
					<tr>
						<td>${online_list.userName}</td>
						<td>${online_list.userNumber }</td>
						<td>
								<s:if test="#online_list.userType==0">QQ</s:if>
								<s:elseif test="#online_list.userType==1">旺旺</s:elseif>
								 <s:elseif test="#online_list.userType==2">电话</s:elseif>
						</td>
						<td>
							<s:if test="#online_list.service==0">无权服务</s:if>
							<s:elseif test="#online_list.service==1">有权服务</s:elseif>
						</td>
						<td>
							${online_list.createDate }
						</td>
						<td>
							<input type="button" value="删除" onclick="deleteOnline('${online_list.id}')"/>
						</td>
					</tr>
				</s:iterator>	
			</tbody>
			<tfoot>
				<tr>
					<td colspan="5">
						<input type="button" value="添加客服" onclick="addOnline()">
					</td>
				</tr>
			</tfoot>
		</table>
</body>
</html>